/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - Ex2
 * <p>Powered by webrx On 2023-07-19 09:44:31
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex2 {
    public static void main(String[] args) {
        String str = String.valueOf(Long.MAX_VALUE).concat("234");
        System.out.println(str);
        StringBuilder sbu = new StringBuilder(str);
        int s = 0;
        for (int i = 1; i < str.length(); i++) {
            if (i % 3 == 0) {
                //sbu.insert(str.length() - i, ',');
                sbu.insert(i + s, ',');
                ++s;
            }
        }
        System.out.println(sbu);
    }
}
